<?php

class Application_Model_DbTable_Subscription extends Zend_Db_Table_Abstract {

    protected $_name = 'subscription';
    protected $_referenceMap = array(
        'Element' => array(
            "columns" => array('user_id'),
            "refTableClass" => 'Application_Model_DbTable_User',
            'refColumns' => array('id')
        ),
        'Group' => array(
            "columns" => array('group_id'),
            "refTableClass" => 'Application_Model_DbTable_Group',
            'refColumns' => array('id')
        )
    );
}